<!DOCTYPE html>
<html>
  <head>
    <title>潜在客户管理列表</title>
    <#include "/inc/base-style.ftl">
  </head>
  <body class="${bodyClass}">
    <div class="wrapper">
      <!-- Main Header -->
     <#include "/inc/main-header.ftl">
      <!-- Left side column. contains the logo and sidebar -->
      <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
          <#include "/inc/slidebar-menu.ftl">
        </section>
        <!-- /.sidebar -->
      </aside>

      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            潜在客户管理列表  
          </h1>
        </section>

        <!-- Main content -->
        <section class="content">
        <div class="box">
        
            <div class="box-header">
                <#include "crm/potential/search.ftl">
            </div>
            
            <div class="box-body">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>ID</th>  
                            <th>用户名</th>
                            <th>职务</th> 
                            <th>公司名称</th>
                            <th>客户状态</th>
                            <th>付款状态</th>
                            <th>地区</th>    
                            <th>会籍经理</th>
                            <th>资料提交时间</th>
                            <th>添加时间</th>                  
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <#list lists as list>
                        <tr data-event-sign-id="${list.id}">
                            <td>${list.id}</td>  
                            <td>${list.uname}</td>
                            <td>${list.position}</td>
                            <td>${list.com_name}</td>
                            <td>${list.statusName}</td>
                            <td>${list.payStatusName}</td>
                            <td>${list.province}</td>
                            <td>${list.memshipName}</td>
                            <td><#if (list.infoSubmitTime)??>${list.infoSubmitTime?string("yyyy-MM-dd HH:mm:ss")}</#if></td>
                            <td><#if (list.createTime)??>${list.createTime?string("yyyy-MM-dd HH:mm:ss")}</#if></td>
                            <td>
                                <!-- Single button -->
                                <div class="btn-group">
                                  <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                    管理 <span class="caret"></span>
                                  </button>
                                  <ul class="dropdown-menu" style="left:-40px;">
                                    <#if list.clientStatus == 0>
                                    <li><a href="javascript:;" onclick="collectDone(${list.user_id});return false;">收集资料完成</a></li>
                                    </#if>
                                    <#if [1,2,3]?seq_contains(list.clientStatus)>
                                    <li><a href="/crm/auditreport/auditReportView?uid=${list.uid}">审核报告</a></li>
                                    </#if>
                                    <#if list.payStatusName == "已支付">
                                    <li><a href="/crm/potential/modifyContract?uid=${list.uid}">修改合同</a></li> 
                                    </#if>
                                    <#if list.clientStatus == 3>
                                    <li><a href="javascript:;" onclick="auditReApply(${list.user_id});return false;">审核再申请</a></li> 
                                    </#if>
                                    <li role="separator" class="divider"></li> 
                                    <li><a href="javascript:;" onclick="giveupToOcean(${list.user_id});return false;">放弃到公海</a></li>                                    
                                    <li><a href="javascript:;" onclick="assignMemship(${list.user_id},${list.memshipId});return false;">修改会籍务经理</a></li>               
                                     <li><a href="/crm/potential/applyUpdate?uid=${list.uid}">修改入岛申请表</a></li>
                                     <li><a href="/crm/serviceRecord/list?uid=${list.uid}">服务记录</a></li>
                                     <li><a href="/crm/trackPerson/list?uid=${list.uid}">会籍服务变更记录</a></li>                                                                                                  
                                  </ul>
                                </div>
                            </td>
                        </tr>
                        </#list>
                    </tbody>
                </table>
            </div>
            <div class="box-footer">
                <@zhd.page pm url />
            </div>
            
        </div>
        
        <!-- Your Page Content Here -->
        <#include "/crm/potential/assignMemship.ftl">             
        <#include "/crm/potential/auditReApply.ftl">
        <#include "/crm/potential/giveupToOcean.ftl">
        <#include "/crm/potential/collectDone.ftl">

        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->
    <#include "/inc/main-footer.ftl">

    

    <#include "/inc/base-script.ftl">
    <#include "/script/potential/mainScript.ftl">
  </body>
</html>
